﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fusion.Common
{
    public class Globals
    {
        public static string MetaConnectionString = "res://*/FusionDB.csdl|res://*/FusionDB.ssdl|res://*/FusionDB.msl";
        public static string ProviderConnectionString = "\"Data Source=localhost;Initial Catalog=FusionDB;Persist Security Info=True;User ID=sa;Password=data1\"";
        public static string Provider = "System.Data.SqlClient";
        public static string DatabaseName = "FusionDB";
    
        public static string GetModelConnectionString()
        {
            string connectionString = @"metadata={0};provider={1};provider connection string={2}";
            return string.Format(connectionString, MetaConnectionString, Provider, ProviderConnectionString);
           
        }
    }
}
